package com.fahai.web.service;

import com.fahai.common.PageVo;
import com.fahai.web.entity.Menu;
import com.fahai.web.entity.RoleMenu;
import com.fahai.web.vo.RoleMenuVo;
import com.fahai.web.vo.SysGroupVo;

import java.util.List;
import java.util.Map;

/**
 * Created by sky on 17/5/11.
 */
public interface RoleMenuService {
    public List<RoleMenuVo> findRoleMenuList();
    public List<SysGroupVo> findMenuList() ;
    public List<Menu> findAllMenu();
    public void updateSysMenu(SysGroupVo sysGroupVo);
    public void saveSysMenu(SysGroupVo sgv);

    public PageVo selectRoleMenuList(PageVo pageVo);

    public List<Map<String,Object>> selectRoleMenuOne(Integer roleId);

    public void updateRoleMenuOne(Integer roleId,List<RoleMenu> list);

    public void addRoleMenuOne(String roleName,List<RoleMenu> list);

    public List<Menu> findRoleMenu(String userName);

    public List<Map<String,Object>> selectUserRoleMenu(String userName);

}
